<?php
namespace App\Controllers\My;
use App\Models\Peizhi\Peizhi;

/**
*	关于我们
*/
class About extends \App\Libs\Base\BaseAction
{
    protected function beforeRun() {
        parent::beforeRun();
        //$this->needLogin = TRUE;
    }
	
	public function execute(){
		//查询peizhi表里所有首页的数据
		$about = Peizhi::findOne('type=6');
		if( empty( $about ) ){
			return \App\Libs\Views\Json::view(0, '成功', []);	
		}else{
			$data = $about->toArray();
			return \App\Libs\Views\Json::view(0, '成功', $data['data']);	
		}
		
	}
}
